//
//  MenuCollectionCell.m
//  zoneSun
//
//  Created by zy-gyl on 16/6/8.
//  Copyright © 2016年 Zeaple. All rights reserved.
//

#import "MenuCollectionCell.h"
#import "OSSHelper.h"
@implementation MenuCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];

}

-(void)setMenuItem:(MenuItem *)menuItem{
    _menuItem = menuItem;
       self.label.text = _menuItem.name;
    [[OSSHelper sharedHelper]OSSDownLoadWithObjectKey:_menuItem.logo xOssProcess:[NSString stringWithFormat:@"image/resize,m_lfit,w_%d,h_%d",90,90]  downLoadBlock:^(NSData *data) {
        dispatch_async(dispatch_get_main_queue(), ^{
            self.imgeV.image= [UIImage imageWithData:data];
        });
    }];
}

-(void)setIsMore:(BOOL)isMore{
    self.label.text = @"更多";
    self.imgeV.image = [UIImage imageNamed:@"更多"];
}
@end
